package com.zephyr.vchcenter.bpm.decision;

import com.hiaward.bpm.context.ServiceContext;
import com.hiaward.bpm.exception.ParameterException;
import com.hiaward.bpm.exception.RuleException;
import com.hiaward.bpm.exception.ServiceException;
import com.hiaward.bpm.rule.Decision;

public class LocalScanDecisionHandler extends Decision {

	@Override
	public void exceptionHandle(ServiceContext arg0) {
		
	}

	@Override
	public String make(ServiceContext context) throws RuleException,
			ServiceException, ParameterException {
	    String localScan=(String)context.getInputParameterValue("localScan");
		String transition=localScan.equals("0")?"to localScanAudit":"to join1";
	    return transition;
	}

}
